package com.app.service.impl.superarket;

import com.app.mapper.supermarket.CommentMapper;
import com.app.mapper.supermarket.MktPersonMapper;
import com.app.model.supermarket.CommentModel;
import com.app.model.supermarket.MktPersonModel;
import com.app.service.supermarket.CommentService;
import com.app.service.supermarket.MktPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description:零活
 * @Author: N
 * @Date: 2022年11月24日 10点29分
 */
@Service
@Primary
public class CommentServiceImpl implements CommentService {
    @Autowired
    CommentMapper commentMapper;


    @Override
    public List<CommentModel> getCommentList(int mid) {
        return commentMapper.getCommentList(mid);
    }

    @Override
    public int insert(CommentModel model) {
        return commentMapper.insert(model);
    }
}
